<!DOCTYPE html>

% # variable:
% # book, current_uuid, record_name

% # 獲取 content 與 time_stamp
% if record_name is None or record_name == '':
    % content = book.content(current_uuid)

    % mtime = book.mtime(current_uuid)
    % time_stamp = mtime.strftime(book.time_format)
% else:
    % content = book.record(current_uuid, name = record_name)

    % ftime = book.ftime(current_uuid, record_name)
    % time_stamp = ftime.strftime(book.time_format)
% end

<html lang="">
    <head>
        <meta charset="utf-8" />
        <title>{{book.title(current_uuid)}}</title>
        <meta name="description" content="{{book.title(current_uuid)}} at {{time_stamp}}" />
        <link rel="stylesheet" href="/static/css/article.css"/>
        <link rel="stylesheet" href="/extra/{{book.book_uuid()}}/book.css" />
        {{!book.extra('extra_head') or ''}}
    </head>

    <body>
        <!-- 筆記資料區 -->
        <article id='main_content'>{{!content}}</article>
    </body>

</html>
